package main

import (
	"fmt"
	"strings"
)

//回答问题协程
func answer(hh chan string) {
	for {
		str := <-hh
		str = strings.Replace(str, "吗", "", 1)
		str = strings.Replace(str, "？", "!", 1)
		str = strings.Replace(str, "?", "!", 1)
		fmt.Println("冰冰:", str)
	}
}

//接受问题协程
func question(hh chan string) {
	var str string
	for {
		fmt.Scanln(&str)
		hh <- str
	}

}

func main() {
	haha := make(chan string)
	go answer(haha)
	go question(haha)
	var do chan int
	<-do
}
